module.exports = {

	showDetail(index, row) {
		let {
			form,
			dataGrid,
			dailogComp,
		} = this
		let formDialog = dailogComp.formDialog
		let selected = row || dataGrid.datagrid('getSelected')
		if (selected) {
			form.form('load', selected)
			formDialog.dialog('open')
		}
	}
}